package com.supremex.aisupremex.web.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.supremex.aisupremex.common.mybatis.core.page.PageQuery;
import com.supremex.aisupremex.common.mybatis.core.page.TableDataInfo;
import com.supremex.aisupremex.web.dao.UserMapper;
import com.supremex.aisupremex.web.entity.User;
import com.supremex.aisupremex.web.service.UserService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zkx
 * @since 2024-06-03
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

	@Override
	public TableDataInfo<User> selectPageUserList(User user, PageQuery pageQuery) {
		Page<User> page = baseMapper.selectPageUserList(pageQuery.build(), user);
		return TableDataInfo.build(page);
	}
}
